<html>
	<body>
		<h1>Verify</h1>
		<?php
			require_once ('assert.php');
			assertEquals(10, $ctx->cmWidth);
			assertEquals(5, $ctx->cmHeight);
			assertEquals(800, $ctx->workspaceDialogHeight);
			assertEquals(1000, $ctx->workspaceDialogWidth);
			assertEquals(800, $ctx->imageUploadDialogWidth);
			
			$configurations = $ctx->canvasConfigurations;
			assertEquals(4, count($configurations));
			
			echo "<br/>scenario 1 <br/>";
			$configuration = $configurations[0];
			assertEquals("10cm x 5cm [50]", $configuration->name);
			assertEquals("/viae/canvas.php?extendedCanvasWidth=551.1811018&extendedCanvasHeight=433.0708657&bleedXL=39.3700787&bleedXR=118.1102361&bleedYT=78.7401574&bleedYB=157.4803148&scale=1&containerWidthInch=5.511811018&containerHeightInch=4.330708657&dpi=100&price=50", $configuration->url);
			
			echo "<br/>scenario 2 <br/>";
			$configuration = $configurations[1];
			assertEquals("5cm x 10cm [120]", $configuration->name);
			assertEquals("/viae/canvas.php?extendedCanvasWidth=262.5&extendedCanvasHeight=466.66666666667&bleedXL=29.166666666667&bleedXR=87.5&bleedYT=58.333333333333&bleedYB=116.66666666667&scale=0.98777777878531&containerWidthInch=3.543307083&containerHeightInch=6.299212592&dpi=75&price=120", $configuration->url);
			
			echo "<br/>scenario 3 <br/>";
			$configuration = $configurations[2];
			assertEquals("5cm x 10cm [240]", $configuration->name);
			assertEquals("/viae/canvas.php?extendedCanvasWidth=262.5&extendedCanvasHeight=466.66666666667&bleedXL=29.166666666667&bleedXR=87.500000000001&bleedYT=58.333333333334&bleedYB=116.66666666667&scale=0.24694444469633&containerWidthInch=3.543307083&containerHeightInch=6.299212592&dpi=300&price=240", $configuration->url);
			
			echo "<br/>scenario 4 <br/>";
			$configuration = $configurations[3];
			assertEquals("10cm x 5cm [50]", $configuration->name);
			assertEquals("/viae/canvas.php?extendedCanvasWidth=566.66666666667&extendedCanvasHeight=445.2380952381&bleedXL=40.47619047619&bleedXR=121.42857142857&bleedYT=80.952380952381&bleedYB=161.90476190476&scale=0.68539682609593&containerWidthInch=5.511811018&containerHeightInch=4.330708657&dpi=150&price=50", $configuration->url);
				
			/*echo "<br/>scenario 2 <br/>";
			$configuration = $configurations[1];
			assertEquals("20cm x 20cm", $configuration->name);
			assertEquals("/canvas.php?extendedCanvasWidth=466.66666666667&extendedCanvasHeight=466.66666666667&bleedX=113.385826772&bleedY=151.181102362&scale=0.61736111111113", $configuration->url);
			
			echo "<br/>scenario 3 <br/>";
			$configuration = $configurations[2];
			assertEquals("25cm x 50cm", $configuration->name);
			assertEquals("/canvas.php?extendedCanvasWidth=233.33333333334&extendedCanvasHeight=466.66666666667&bleedX=188.976377953&bleedY=188.976377953&scale=0.24694444444439", $configuration->url);
			
			echo "<br/>scenario 4 <br/>";
			$configuration = $configurations[3];
			assertEquals("1cm x 1cm", $configuration->name);
			assertEquals("/canvas.php?extendedCanvasWidth=37.795275591&extendedCanvasHeight=37.795275591&bleedX=37.795275591&bleedY=37.795275591&scale=1", $configuration->url);
			
			echo "<br/>scenario 5 <br/>";
			$configuration = $configurations[4];
			assertEquals("500cm x 1000cm", $configuration->name);
			assertEquals("/canvas.php?extendedCanvasWidth=233.3333333333&extendedCanvasHeight=466.66666666658&bleedX=944.881889764&bleedY=188.976377953&scale=0.01234722222222", $configuration->url);*/
			
		?>
	</body>
</html>